package com.aaa.service.impl;

import com.aaa.dao.TestTypeDao;
import com.aaa.entity.TestType;
import com.aaa.service.TestTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class TestTypeServiceImpl implements TestTypeService {
    @Autowired
    private TestTypeDao testTypeDao;

    /**
    * @Author: WTH
    * @Description: 查询
    * @Date:2022-07-07 09:00
    * @Params:
    */
    @Override
    public List<String> selectTestType() {
        List<TestType> testTypes = testTypeDao.selectTestType();
        List<String> typeList=new ArrayList<>();
        //取出所有测试类型
        for (TestType testType : testTypes) {
            typeList.add(testType.getTest_type());
        }
        return typeList;
    }
}
